<?php if (!defined('THINK_PATH')) exit();?><script type="text/javascript">
	
	window.onload=function(){
		var one = document.body.clientWidth;
		var dao = document.getElementById("daohang");
		var a=1;
		if(one<760){
			dao.style.height=50+"px";
			
		}else{
			
		}
		
			
		
	}
	

</script>
<!DOCTYPE html>
<html>
<style type="text/css">
.nav-label{font-size:15px;}
</style>
<head>
<meta name="Generator" content="ECSHOP v2.7.3" />
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <title>ELT</title>
    <!--[if lt IE 8]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->

    <!-- <link rel="shortcut icon" href="favicon.ico"> -->
    <link rel="shortcut icon" type="image/x-icon" href="/Public/home/images/LOGO0.png" />
   <link rel="stylesheet" type="text/css" href="/Public/home/css/xcConfirm.css"/>
        <script src="/Public/home/js/jquery-1.9.1.js" type="text/javascript" charset="utf-8"></script>
        <script src="/Public/home/js/xcConfirm.js" type="text/javascript" charset="utf-8"></script>
       
    <link href="/Public/home/css/bootstrap.min.css?v=3.3.5" rel="stylesheet">
     <link href="/Public/home/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="/Public/home/css/animate.min.css" rel="stylesheet">
    <link href="/Public/home/css/style.min.css?v=4.0.0" rel="stylesheet">
     <script src="/Public/home/js/jquery.min.js?v=2.1.4"></script>
    <script src="/Public/home/js/bootstrap.min.js?v=3.3.5"></script>
    <script src="/Public/home/js/plugins/metisMenu/jquery.metisMenu.js"></script>
    <script src="/Public/home/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
    <script src="/Public/home/js/plugins/layer/layer.min.js"></script>
    <script src="/Public/home/js/hplus.min.js?v=4.0.0"></script>
    <script type="text/javascript" src="/Public/home/js/contabs.min.js"></script>
    <script src="/Public/home/js/plugins/pace/pace.min.js"></script>
    <script type="text/javascript"></script>
    <style type="text/css">
    .pagination > .active > a, .pagination > .active > a:focus, .pagination > .active > a:hover, .pagination > .active > span, .pagination > .active > span:focus, .pagination > .active > span:hover {
	    background-color: #23c6c8;
	    border-color: #ddd;
	    color: white;
	    cursor: default;
	    z-index: 2;
	}
    .sgBtn{width: 135px; height: 35px; line-height: 35px; margin-left: 10px; margin-top: 10px; text-align: center; background-color: #0095D9; color: #FFFFFF; float: left; border-radius: 5px;}
    </style>
  
</head>
 
<body class="fixed-sidebar full-height-layout" >
    <!-- this.Response.Write("<script language='javascript'>alert('最新体统公告！');</script>");   -->

<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" >
 
<div class="modal-dialog" >
    <div class="modal-content" >
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
       <!--  <h4 class="modal-title" id="myModalLabel">Modal title</h4> -->
      </div>
      <div class="modal-body">
        <div class="table-responsive">
	  <table class="table table-bordered table-striped table-hover">
		<thead>
			<tr>
				<th>编号</th>
				<th>用户名</th>
	            <th>操作</th>
			</tr>
			</thead>
			
			<tbody>
		    		    </tbody>
	  </table>
	</div>
	        
      </div>
     <!--  <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
        <button type="button" class="btn btn-primary">Save changes</button>
      </div> -->
    </div>
  </div>
</div>

    <div id="wrapper" style="background: white;" >
    
        
      
        <nav class="navbar-default navbar-static-side" role="navigation" >
        
        
            <!-- <div class="nav-close"><i class="fa fa-times-circle"></i>
            
            </div>  -->
            <div class="sidebar-collapse" style="background: -moz-linear-gradient(left, #e57f46, #f9e35e);
background: -webkit-linear-gradient(left,#e57f46, #f9e35e);
background: -o-linear-gradient(left,#e57f46, #f9e35e);">
			<!--  <div style="border-bottom:1px solid #C6C6C6;background-color:#4F94CD;height:150px;text-align:center;padding:5px"><img src="themes/default/images/logo00.png" width="64%"/></div>-->
                <ul class="nav" id="side-menu">
                
                	
                    <li class="nav-header">
                    	
                        <div class="dropdown profile-element">
                            
                             <img src="/Public/home/images/logo00.png" width="80%" style="margin-top:0px;margin-left:10px;"/> 
                               <span class="clear" style="margin-top:10px">
                                <span style="float:left;width:40%;">
                               		<img src="/Public/home/images/potologo.jpg" width="100%"/>
                               	</span>
                               <span style="float:right;width:50%" >
                                    <strong class="font-bold" style="color:#000"><?php echo $_SESSION['users']['user_name']; ?><br>ID:<?php echo $_SESSION['users']['user_id']; ?>
                                

                                    <br>
                               <a href='/admin.php/Home/account/relevance' style='color:black'>切换账户</a></br>
                                    </strong>
                                
                                </span>
                                </span>
                         <div style="margin-top:10px">
                            <strong class="font-bold" style="color:#000"> 会员等级:<b style="color:red">
                                <?php  if($_SESSION['users']['user_type']==3){ echo VIP1; }elseif($_SESSION['users']['user_type']==5){ echo VIP2; }elseif($_SESSION['users']['user_type']==10){ echo VIP3; }elseif($_SESSION['users']['user_type']==30){ echo VIP4; }elseif($_SESSION['users']['user_type']==50){ echo VIP5; }elseif($_SESSION['users']['user_type']==100){ echo VIP6; } ?></b><?php
 if($_SESSION['users']['is_reportcenter']==1){ echo 【商务中心】; } ?></strong>
                         </div>
                                                </div>
                    </li>
                    <li style="border-top:1px solid #cccccc;">
                        <a class="" href="/admin.php/Home/index/index"> <img src="/Public/home/images/1.png" width="20px"/> <span class="nav-label" style="color:#000">主页</span></a>
                    </li>
                    <li style="border-top:1px solid #cccccc;">
                        <a href="#">
                            <img src="/Public/home/images/2.png" width="20px"/> 
                            <span class="nav-label" style="color:#000">用户中心</span>
                            <span class="fa arrow"></span>
                        </a>
                        <ul class="nav nav-second-level">
                            <li>
                                <a  href="/admin.php/Home/person/index">个人资料</a>
                            </li>
                            <li>
                                <a  href="/admin.php/Home/person/phone">安全中心</a>
                            </li>
                            
                        </ul>
                    </li>

                    <li style="border-top:1px solid #cccccc;">
                        <a href="#"><img src="/Public/home/images/3.png" width="20px"/> <span class="nav-label" style="color:#000">账户管理</span><span class="fa arrow"></span></a>
                    
                        <ul class="nav nav-second-level">
                            <li><a  href="/admin.php/Home/account/relevance">账户关联</a>
                            </li>
                            
                            <li><a  href="/admin.php/Home/grand/index">账户等级管理</a>
                            </li>
                             <li><a  href="/admin.php/Home/back/index">账户回填</a>
                            </li>
                            
                        </ul>
                    </li>
                     <li style="border-top:1px solid #cccccc;">
                        <a href="#"><img src="/Public/home/images/4.png" width="20px"/> <span class="nav-label" style="color:#000">会员管理</span><span class="fa arrow"></span></a>
                        <ul class="nav nav-second-level">                          
                            <li><a  href="/admin.php/Home/user/teamPic">团队图谱</a>
                            </li>
                           <!--    <li><a  href="/admin.php/Home/user/recommend">推荐图谱</a>
                            </li> -->
                            <li><a  href="/admin.php/Home/user/jh">账号激活</a>
                            </li>
                        </ul>
                    </li>
                    <li style="border-top:1px solid #cccccc;">
                        <a href="#"><img src="/Public/home/images/5.png" width="20px"/> <span class="nav-label" style="color:#000">E积分明细</span><span class="fa arrow"></span></a>
                        <ul class="nav nav-second-level">
                            <li><a  href="/admin.php/Home/point/index">系统E积分明细</a>
                            </li>
                            <li><a  href="/admin.php/Home/point/mypoint">我的E积分明细</a>
                            
                        </ul>
                    </li>
                    
                    <li style="border-top:1px solid #cccccc;">
                        <a href="#"><img src="/Public/home/images/6.png" width="20px"/> <span class="nav-label" style="color:#000">交易大厅</span><span class="fa arrow"></span></a>
                            <ul class="nav nav-second-level">
                            <li><a  href="/admin.php/Home/sell/matchEpoint">匹配E积分</a>
                            </li>
                            <li><a href="/admin.php/Home/sell/sellEpoint">出售E积分</a>
                            </li>
                            <li><a  href="/admin.php/Home/sell/successEpoint">E积分成交记录</a>
                            </li>
                            <li><a  href="/admin.php/Home/sell/buymoney">购买现金积分</a>
                            </li>
                            <li><a  href="/admin.php/Home/sell/sellmoney">出售现金积分</a>
                            </li>
                            <li><a  href="/admin.php/Home/sell/successCashpoint">现金积分成交记录</a>
                            </li>
                            <li><a  href="/admin.php/Home/sell/matchEpoint">购买上市股权</a>
                            </li>
                        </ul>
                        
                    </li>
                    <li style="border-top:1px solid #cccccc;">
                        <a href="#"><img src="/Public/home/images/7.png" width="20px"/> <span class="nav-label" style="color:#000">积分管理</span><span class="fa arrow"></span></a>
                    
                        <ul class="nav nav-second-level">
                            <li><a  href="/admin.php/Home/switch/transfer">注册积分转账</a>
                            </li>
                            <li><a  href="/admin.php/Home/switch/cashtranszc">现金积分转注册积分</a>
                            </li>
                        </ul>
                    </li>
                     <li style="border-top:1px solid #cccccc;">
                        <a href="#"><img src="/Public/home/images/8.png" width="20px"/> <span class="nav-label" style="color:#000">资产明细</span><span class="fa arrow"></span></a>
                            <ul class="nav nav-second-level">
                                
                                <li><a  href="/admin.php/Home/asset/register">注册积分明细</a>
                                </li>
                                <li><a  href="/admin.php/Home/asset/cash">现金积分明细</a>
                                </li>
                                <li><a  href="/admin.php/Home/asset/scription">认购积分明细</a>
                                </li>
                                
                                <li><a  href="/admin.php/Home/asset/epoint">E积分明细</a>
                                </li>
                                <li><a  href="/admin.php/Home/asset/stock">上市股权明细</a>
                                </li>                              
                            </ul>
                        
                    </li>
                    <li style="border-top:1px solid #cccccc;">
                        <a href="#"><img src="/Public/home/images/sc.png" width="20px"/> <span class="nav-label" style="color:#000">商城</span><span class="fa arrow"></span></a>
                            <ul class="nav nav-second-level">
                                <li><a  href="/admin.php/Home/shop/point">商城积分明细</a>
                                 </li>
                                <li><a  href="/admin.php/Home/shop/index">商城列表</a>
                                </li>
                                <li><a  href="/admin.php/Home/shop/order">订单列表</a>
                                </li>
                                                          
                            </ul>
                        
                    </li>
                    <li style="border-top:1px solid #cccccc;">
                        <a  href="/admin.php/Home/login/outlogin"> <img src="/Public/home/images/9.png" width="20px"/ >  <span style="color:#000">安全退出</span></a>
                    </li>

                </ul>
            </div>
       
        
        
         </nav>
        <div id="page-wrapper" class="dashbard-1" style="background: white;" >
            <div class="row border-bottom" style="background: white">
            <div style="height:150px" id="daohang" style="overflow:hidden"><img src="/Public/home/images/goodgd.png" style='width:100%;height:100%'/></div>
                <nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0" style="background: white">
                    <div  style="line-height:55px;width:100%;text-align: center;" class="navbar-header" style="background: white">
                    <a class="navbar-minimalize minimalize-styl-2 btn btn-primary " href="#"><i class="fa fa-bars"></i> </a>
                     <b style="font-weight:800;font-size:18px"><span style="font-size:19px;display:bloack;liner-height:19px;text-algin:center;">ELT</span>交易平台</b> 
                    </div>
                   
                </nav>
            </div> 
            
            <div class="row content-tabs">
                <!-- <button class="roll-nav  navbar-minimalize"><i class="fa fa-bars"></i>
                </button> -->
                <nav class="page-tabs J_menuTabs">
                    <div class="page-tabs-content">
                        <a href="/admin.php/Home/index/index" class="active J_menuTab" data-id="">首页</a>
                    </div>
                </nav>
                <a id="shuaxin" class="roll-nav roll-right J_tabRight" href='javascript:void(0)' onclick='history.go(0)'>刷新
                </a>
                
                <a href="/admin.php/Home/login/outlogin" class="roll-nav roll-right J_tabExit"><i class="fa fa fa-sign-out"></i> 退出</a>
            </div>
            <div class="row J_mainContent" id="content-main">
               
<body>
 



    <div class="wrapper wrapper-content animated fadeInRight">
      <div class="row">
      <div class="tabs-container">
		   <ul class="nav nav-tabs text-center">
		       <li class="active"><a data-toggle="tab" href="#tab-1" aria-expanded="true" id="a_one" onclick="f1()" style="width:300px;background-color:white;"> 出售E积分</a>
		       </li>
		       <li class=""><a data-toggle="tab" href="#tab-2" aria-expanded="false" id="a_two" onclick="f2()" style="width:300px;">出售E积分记录</a>
		       </li>
		   </ul>
      <div class="tab-content">
       <div id="tab-1" class="tab-pane active">
           <div class="panel-body">
           <div class="col-sm-6">
			  <div class="ibox float-e-margins">
			      <div class="ibox-content">
			      
			          	<div style="margin-left:0px;"><span style="font-size:1.3em">当前E积分价格：</span><span style="font-size:22px;color:red;">$<?php echo ($res["param1"]); ?></span></div>
			         
			           	<div style="margin-left:0px;"><span style="font-size:1.3em"> E积分交易量达 ：</span><span style="color:red;font-size:1.4em"><?php echo ($res["param8_1"]); ?></span>时，</div><div style="margin-left:0px;"><span style="font-size:1.3em">价格上涨：</span><span style="color:red;font-size:22px">$<?php echo ($res["param8_2"]); ?></span></div>
			   
			       </div>
			   </div>
			</div>
			<div class="col-sm-6">
			  <div class="ibox float-e-margins">
			      <div class="ibox-content">
			      	<div><span style="font-size:1.3em;color:blue;">当前市值：<?php echo ($user['option_num']*$res['param1']); ?></span></div>
	            	<p></p>
	            	<div><span style="font-size:1.3em">当前E积分总数 ：<?php echo ($user["option_num"]); ?></span></div>
	            	<p></p>
	            	<div><span style="font-size:1.3em">历史E积分出售总数：<?php echo ($user["option_num2"]); ?></span></div>
			      	
			       </div>
			   </div>
			</div>
			<div class="col-sm-6">
			<div class="ibox float-e-margins">
	            <div class="ibox-content">
	            	<div><span style="font-size:1.3em">本轮E积分总数：<?php echo ($res["nowetotal"]); ?></span></div>
	            	<p></p>
	            	<div><span style="font-size:1.3em">剩余E积分总数：<?php echo ($res["sys"]); ?></span></div>
	            	<p></p>
	            	<div><span style="font-size:1.3em">今日E积分交易数：<?php echo ($res["jys"]); ?></span></div>
				</div>
			</div>
			</div>
			
            	
           <div class="col-sm-6">
            <div class="ibox-content">
           		<div class="table-responsive">
					<table class="table">
					<!--a data-toggle="modal" data-target="#myModal">[全屏]</a>-->
			    <div id="main" style="width: 500px;height:265px;" class=" J_iframe"></div>
			    <input type="hidden" value=<?php echo ($qdata); ?> id="qdata">
                        <!-- <div class="echarts" id="echarts-line-chart"></div> -->
		    </div>	
				</table>
				</div>
				</div>
			</div>
			<div class="col-sm-12">
            <div class="ibox-content">
            
                <?php if(($res["txsjstart"] != 0) and ($res["txsjend"] != 0) and ($_SESSION['users']['user_money3'].user_money3 > 0)): ?><div style="color:red;text-align: center;font-size:1.3em">提示：您的认购积分将于<?php echo ($res["txsjstart"]); ?>~<?php echo ($res["txsjend"]); ?>个工作日匹配成功，具体时间以平台实际匹配时间为准！</div><?php endif; ?>
			
						</div>




		<div class="col-sm-12">
			  <div class="ibox float-e-margins">
			     <!-- <div class="ibox-content">-->
			          <form class="form-horizontal m-t"  action="/admin.php/Home/sell/sellejf" method="post" onSubmit='return checkForm(this)' >
			             <div class="form-group">
			                  <label class="col-sm-3 " style="width:320px;">请输入出售数量<span style="color:red;letter-spacing:0px;font-size:12px;">(每个价位最多卖出总数量的<?php echo ($res["param13"]); ?>%)</span></label>
			               
			                  <div class="col-sm-8">
		                          <input id="sell_num" name="sell_num" class="form-control" onkeyup="(this.v=function(){this.value=this.value.replace(/[^0-9-]+/,'');}).call(this)" type="text">
		                      	  <input name="maxsell" value="<?php echo ($res["maxsell"]); ?>" type="hidden">
		                      	  <input name="param1" value="<?php echo ($res["param1"]); ?>" type="hidden">
		                      	  <input name="sell_option_num" value="<?php echo ($user["sell_option_num"]); ?>" type="hidden">
		                      </div>
		                       <div class="col-sm-8">
		                       <span style="color:red;font-size:12px;marign-left:20px">E积分上涨大于等于$<?php echo ($res["maxsell"]); ?>不能出售</span>
	              		</div>
	              		 </div>
	              	<div class="form-group">
	                  <label class="col-sm-3" style="width:320px">*手机验证码：</label>
	                  <div class="col-sm-8" >
	                  		<div class="input-group">
                                <input id="mobile_code" name="mobile_code" class="form-control" type="text"> 
                                <span class="input-group-btn"> 
                                	<input id="btnSendCode" class="btn btn-primary" value="获取手机验证码" onclick="sendMessage()" type="button" /> 
                                </span>
                            </div>
	                  </div>
	              </div>




	              		<div class="form-group">
			                  <label class="col-sm-3 " style="width:320px;">请输入安全密码</label>

			                  <div class="col-sm-8">
		                          <input id="repassword" name="repassword" class="form-control" type="password">

		                     </div>
		                     
	              		</div>
	              		 <!--<div class="form-group">-->
			                  <span style="color:red;marign-left:20px">当前可卖出的数量为：<?php echo ($user['sell_option_num']); ?>，最少卖出的数量为1</span>
	              		<!-- </div>-->
	              		<!--<div class="form-group">
                        <div class="col-sm-12 " style="margin-top:30px">-->
                            <input class="btn" style="background-color: #378cbe;color:white;width: 90%;height: 40px" value="出售提交"  type="submit">
                        <!--</div>
                    </div>-->
			           </form>
			     <!-- </div>-->
			   </div>
			</div>


			</div>
			
            </div>
        </div>
        <div id="tab-2" class="tab-pane">
            <div class="panel-body">
            <div class="col-sm-12">
			  <div class="ibox float-e-margins">
			    <div class="ibox-content">
            	<form class="form-horizontal m-t" name="aqmmform">
	              		<div class="table-responsive">
							<table class="table table-bordered table-striped table-hover">
								<thead>
									<tr>
										<th>日期</th>
										<th>会员ID</th>
										<th>数量</th>
										<th>交易类型</th>
										<th>单价</th>
										<th>总额</th>
										<th>当前状态</th>
										<th>操作</th>
									</tr>
									</thead>
									<tbody>
									<?php if(is_array($sellEpoint)): foreach($sellEpoint as $key=>$vo): ?><tr>
										<td><?php echo date('Y-m-d H:i:s',$vo['sell_time']); ?></td>
										<td><?php echo ($vo['sell_user_id']); ?></td>
										<td><?php echo ($vo['sell_num']); ?></td>
										<td><?php echo ($vo['content']); ?></td>
										<td><?php echo ($vo['sell_money']); ?></td>
										<td><?php echo ($vo['sell_money']*$vo['sell_num']); ?></td>
										<?php if($vo["status"] == 0): ?><td>未匹配</td>
										
										<?php elseif($vo["status"] == 3): ?>
											<td>交易成功</td>
										<?php elseif($vo["status"] == 7): ?>
											<td>已撤销</td><?php endif; ?>
										<td>
											<?php if($vo["status"] == 0): ?><a href='/admin.php/Home/sell/cancelEpoint/id/<?php echo ($vo["mk_id"]); ?>/num/<?php echo ($vo["sell_num"]); ?>'>撤销</a></td>
											<?php else: endif; ?>
									</tr><?php endforeach; endif; ?>
                                    </tbody>
							</table>
							</div>
							<div class="">



 <div id="pager">
  <span style="margin-right:10px;">总计 <b>0</b>  个记录</span>
      
      </div>



<script type="Text/Javascript" language="JavaScript">
&lt;!--

function selectPage(sel)
{
  sel.form.submit();
}

//--&gt;
</script>
</div></form>
	             
	           </div>
	           </div>
	           </div>
            </div>
        </div>
   </div>
   </div>
</div>
    </div>
    <script src="themes/default/js/jquery.min.js?v=2.1.4"></script>
    <script src="themes/default/js/bootstrap.min.js?v=3.3.5"></script>
    <script src="themes/default/js/content.min.js?v=1.0.0"></script><div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-dialog" style="width: 100%">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
      </div>
      <div class="modal-body">
        <div class="table-responsive">
	  <iframe class=" J_iframe" id="mainiframe" name="iframe0" src="?act=1" data-id="?act=qqmc" seamless="" frameborder="0" height="100%" width="100%"></iframe><table class="table ">
		      
 		</table>
	</div>
      </div>
    </div>
  </div>
</div>
    <script src="/Public/home/js/plugins/layer/layer.min.js"></script>
    <script type="text/javascript" src="/Public/home/js/mui.min.js"></script>
     <script src="/Public/home/js/echarts.common1.min.js"></script>
    	<script>    	
    		// x轴的刻度  == 数学上的x轴
    		var xzhou = <?php echo ($tdata); ?>;
    		// 数据 == 数学上的x轴上对应的数值
    		var data = <?php echo ($qdata); ?>
    		// 基于准备好的dom，初始化echarts实例
            var myChart = echarts.init(document.getElementById('main'));

            // 指定图表的配置项和数据
            option = {
    		    tooltip: {
    		        trigger: 'axis'
    		    },
    		    toolbox: {
    		        show: true,
    		        feature: {
    		            dataZoom: {
    		                yAxisIndex: 'none'
    		            },
    		            dataView: {readOnly: false}
    		        }
    		    },
    		    xAxis:  {
    		        type: 'category',
    		        boundaryGap: false,
    		        scale: true,
    		        data: xzhou,

    		    },
    		    yAxis: {
    		        type: 'value',
    				min:"0.2",
    				max:"0.4",
    				splitNumber:9,
    		    },
    		    dataZoom: [
    		        {
    		            id: 'dataZoomX',
    		            type: 'slider',
    		            xAxisIndex: [0],
    		            filterMode: 'filter'
    		        }
    		    ],
    		    series: [
    		        {
    		            name:'指数',
    		            type:'line',
    		            data:data,
    		            markPoint: {
    		                data: [
    		                    {type: 'max', name: '最大值'},
    		                    {type: 'min', name: '最小值'}
    		                ]
    		            }
    		        }
    		    ]
    		};


            // 使用刚指定的配置项和数据显示图表。
            myChart.setOption(option);
    	</script>
		<script>
			var className = document.getElementsByClassName('link');
			for(var i = 0; i < className.length; i++) {
				className[i].addEventListener('tap', function() {
					var href = $(this).attr("name");
					layer.ready(function() {
						layer.open({
							type: 2,
							title: 'layer弹层组件',
							fix: false,
							shadeClose: true,
							maxmin: true,
							area: ['100%', '100%'],
							content: href
						});
					});
				})
			}
    	</script>
		<script>
			var className = document.getElementsByClassName('link');
			for(var i = 0; i &lt; className.length; i++) {
				className[i].addEventListener('tap', function() {
					var href = $(this).attr("name");
					layer.ready(function() {
						layer.open({
							type: 2,
							title: 'layer弹层组件',
							fix: false,
							shadeClose: true,
							maxmin: true,
							area: ['100%', '100%'],
							content: href
						});
					});
				})
			}
		</script>
 
    <script>
    	$('.bnt').click(function(){
    		var num = $('#sell_num').val();
    		
    	});

 //下面的是发送手机验证码
var InterValObj; //timer变量，控制时间
var count = 30; //间隔函数，1秒执行
var curCount;//当前剩余秒数

function sendMessage() {
    curCount = count;       
       
    //向后台发送处理数据
         $.ajax({
                    type : 'POST',
                    url : '/home/sell/phoneAjax',
                    data : {code:1},
                    dataType : 'html',
                    async : false,
                    success : function(str){                       
                         if(str == '发送成功'){                            
                            //设置button效果，开始计时
                            $("#btnSendCode").attr("disabled", "true");
                            $("#btnSendCode").val("请在" + curCount + "秒内输入验证码");
                            InterValObj = window.setInterval(SetRemainTime, 1000); //启动计时器，1秒执行一次
                        }else{
                               var txt=  "信息错误,请核对后再添";
                               window.wxc.xcConfirm(txt, window.wxc.xcConfirm.typeEnum.info);
                        }                        
                    }
                
                })
   
}
//timer处理函数
function SetRemainTime() {
    if (curCount == 0) {                
        window.clearInterval(InterValObj);//停止计时器
        $("#btnSendCode").removeAttr("disabled");//启用按钮
        $("#btnSendCode").val("重新发送验证码");
        code = ""; //清除验证码。如果不清除，过时间后，输入收到的验证码依然有效    
    }else {
        curCount--;
        $("#btnSendCode").val("请在" + curCount + "秒内输入验证码");
    }
}

function checkForm(){
	$('.btn').attr('disabled',true);
	if($('#mobile_code').val() == ''){
		 var txt=  "验 证 码 不 能 为 空";
         window.wxc.xcConfirm(txt, window.wxc.xcConfirm.typeEnum.error);
         return false;
	}else{
		return true;
	}
 
}
 </script>


</body>

            </div>
            <!-- <div class="footer">
                <div class="pull-middle">&copy; 2014-2016 <a href="#" target="_blank">ENJOYCOIN.</a>
                </div>
            </div> -->
        </div>
         
        
        
        <div id="right-sidebar" >
            <div class="sidebar-container" >

                <ul class="nav nav-tabs navs-3" >

                    <li class="active">
                        <a data-toggle="tab" href="#tab-1">
                            <i class="fa fa-gear"></i> 主题
                        </a>
                    </li>
                </ul>

                <div class="tab-content">
                    <div id="tab-1" class="tab-pane active">
                        <div class="sidebar-title">
                            <h3> <i class="fa fa-comments-o"></i> 主题设置</h3>
                            <small><i class="fa fa-tim"></i> 你可以从这里选择和预览主题的布局和样式，这些设置会被保存在本地，下次打开的时候会直接应用这些设置。</small>
                        </div>
                        <div class="skin-setttings">
                            <div class="title">主题设置</div>
                            <div class="setings-item">
                                <span>收起左侧菜单</span>
                                <div class="switch">
                                    <div class="onoffswitch">
                                        <input type="checkbox" name="collapsemenu" class="onoffswitch-checkbox" id="collapsemenu">
                                        <label class="onoffswitch-label" for="collapsemenu">
                                            <span class="onoffswitch-inner"></span>
                                            <span class="onoffswitch-switch"></span>
                                        </label>
                                    </div>
                                </div>
                            </div>
                            <div class="setings-item">
                                <span>固定顶部</span>

                                <div class="switch">
                                    <div class="onoffswitch">
                                        <input type="checkbox" name="fixednavbar" class="onoffswitch-checkbox" id="fixednavbar">
                                        <label class="onoffswitch-label" for="fixednavbar">
                                            <span class="onoffswitch-inner"></span>
                                            <span class="onoffswitch-switch"></span>
                                        </label>
                                    </div>
                                </div>
                            </div>
                            <div class="setings-item">
                                <span>
                        固定宽度
                    </span>

                                <div class="switch">
                                    <div class="onoffswitch">
                                        <input type="checkbox" name="boxedlayout" class="onoffswitch-checkbox" id="boxedlayout">
                                        <label class="onoffswitch-label" for="boxedlayout">
                                            <span class="onoffswitch-inner"></span>
                                            <span class="onoffswitch-switch"></span>
                                        </label>
                                    </div>
                                </div>
                            </div>
                            <div class="title">皮肤选择</div>
                            <div class="setings-item default-skin nb">
                                <span class="skin-name ">
                         <a href="#" class="s-skin-0">
                             默认皮肤
                         </a>
                    </span>
                            </div>
                            <div class="setings-item blue-skin nb">
                                <span class="skin-name ">
                        <a href="#" class="s-skin-1">
                            蓝色主题
                        </a>
                    </span>
                            </div>
                            <div class="setings-item yellow-skin nb">
                                <span class="skin-name ">
                        <a href="#" class="s-skin-3">
                            黄色/紫色主题
                        </a>
                    </span>
                            </div>
                        </div>
                    </div>

                </div>

            </div>
        </div> 
        
       
    </div>

   

</body>

</html>